﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls.WebParts;

namespace BookStore
{
    public partial class GioHang : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack) return;
        }

        public DataTable getgiohang()
        {
            Basket gio = (Basket)Session["GioHang"];
            if (gio != null)
            {
                return gio.Data;
            }
            return null;
        }

        public bool RemoveCartItem(string id)
        {
            Basket gio = (Basket)Session["GioHang"];
            if (gio.isExits(id))
            {
                gio.Remove(id);
                return true;
            }
            return false;
        }

        protected void btUocTinh_Click(object sender, EventArgs e)
        {
            VC15.Webservice transport = new VC15.Webservice();
        }
    }
}